<?php
if(!isset($_SESSION)){
	session_start();
}
if(empty($_SESSION['logind'])){
	echo '<script>top.location.href="./login.php";</script>';
	exit();
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台管理系统</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>

</head>
<body>
	<div class="mainindex">
		<div class="welinfo">
		<b>您好<?php echo $_SESSION['logind'];?>，欢迎使用信息管理系统</b>
		</div>
	
		<div class="welinfo">
			<i>您本次登录IP地址为：<?php echo $_SERVER['REMOTE_ADDR'];?></i> 
		</div>
    </div>
</body>
</html>
